import ReactDOM from 'react-dom'
import './index.css'

// jsx样式-className
// className的值：字符串

const isActive = false
const element = <span className={`button ${isActive ? 'active' : ''}`}>按钮</span>

ReactDOM.render(element, document.getElementById('root'))